<%-- 
    Document   : thongtinthanhvien
    Created on : Jan 6, 2012, 6:14:49 PM
    Author     : HoangLiem
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<!DOCTYPE html>

<link href="style/register.css" rel="stylesheet" type="text/css"/>
<div id="register_body_main">
    <div class="bar">THÔNG TIN THÀNH VIÊN</div>
    <form id="dkform" name="dkform" action="xuLyCapNhatThanhVien" method="POST">
        <div id="register">
            <div class="subbar">
                <c:choose>
                    <c:when test="${status!=null && status == 'updatethanhcong'}">
                        Cập nhật thành công!
                    </c:when>
                    <c:when test="${status!=null && status == 'updatethatbai'}">
                        Cập nhật thất bại!
                    </c:when>
                </c:choose>
            </div>
            <div class="dk_detail" id="dtTenDangNhap">
                <div class="dkitem">Ký danh :</div>
                <div class="dkitem_textbox">
                    <p>
                        <label for="kydanhtextbox"></label>
                        <input style="background-color: #EEE;" type="text" readonly="true" name="tenDangNhap" id="tenDangNhap" value="${thanhVien.tenDangNhap}" class="dk_textbox" />
                    </p>
                </div>
            </div>

            <div class="horizontal"><hr/></div>
            <div class="dk_detail" id="dtTenThanhVien">
                <div class="dkitem">Tên thành viên :</div>
                <div class="dkitem_textbox">
                    <p>
                        <label for="lbTenThanhVien"></label>
                        <input type="text" name="tenThanhVien" id="tenThanhVien" value="${thanhVien.tenThanhVien}" class="dk_textbox" />
                    </p>
                </div>
            </div>
            <div class="dk_detail" id="dtHoThanhVien">
                <div class="dkitem">Họ thành viên :</div>
                <div class="dkitem_textbox">
                    <p>
                        <label for="lbHoThanhVien"></label>
                        <input type="text" name="hoThanhVien" id="hoThanhVien" value="${thanhVien.hoThanhVien}" class="dk_textbox" />
                    </p>
                </div>
            </div>
            <div class="horizontal"><hr/></div>
            <div class="dk_detail" id="dtEmail">
                <div class="dkitem">Địa chỉ Email :</div>
                <div class="dkitem_textbox">
                    <p>
                        <label for="lbEmail"></label>
                        <input type="text" name="email" id="email" value="${thanhVien.email}" class="dk_textbox" />
                    </p>
                </div>
            </div>
            <div class="horizontal"><hr/></div>
            <div class="dk_detail" id="dtEmail">
                <div class="dkitem">Điện thoại :</div>
                <div class="dkitem_textbox">
                    <p>
                        <label for="lbDienThoai"></label>
                        <input type="text" name="dienThoai" id="dienThoai" value="${thanhVien.dienThoai}" class="dk_textbox" />
                    </p>
                </div>
            </div>
            <div class="dk_detail" id="dtNgaySinh">
                <div class="dkitem">Ngày sinh:</div>
                <div class="dkitem_textbox">
                    <div class="ngaySinhItem">
                        <p>Tháng:</p>
                        <p>
                            <select name="thang" id="thang" style="width: 80px;">
                                <c:forEach items="${dsThang}" var="m" varStatus="dsThang" begin="0" end="${dsThang.size()}" step="1"> 
                                    <option 
                                        <c:set var="m1" value="${thanhVien.getNgaySinh().getMonth()+1}"/>
                                        <c:if test="${m1 == m}">
                                            selected = 'selected' 
                                        </c:if>
                                        value='${m}'>Tháng ${m}
                                    </option>
                                </c:forEach>
                            </select>
                        </p>
                    </div>
                    <div class="ngaySinhItem">
                        <p>Ngày:</p>
                        <p>
                            <select name="ngay" id="ngay" style="width: 50px;">
                                <c:forEach items="${dsNgay}" var="d" varStatus="dsNgay" begin="0" end="${dsNgay.size()}" step="1"> 
                                    <option 
                                        <c:set var="d1" value="${thanhVien.getNgaySinh().getDate()}"/>
                                        <c:if test="${d1 == d}">
                                            selected = 'selected' 
                                        </c:if>
                                        value='${d}'>${d}
                                    </option>
                                </c:forEach>
                            </select>
                        </p>
                    </div>
                    <div class="ngaySinhItem">
                        <p>Năm:</p>
                        <p>
                            <select name="nam" id="nam" style="width: 80px;">
                                <c:forEach items="${dsNam}" var="y" varStatus="dsNam" begin="0" end="${dsNam.size()}" step="1"> 
                                    <option 
                                        <c:set var="y1" value="${thanhVien.getNgaySinh().getYear()+1900}"/>
                                        <c:if test="${y1 == y}">
                                            selected = 'selected' 
                                        </c:if>
                                        value='${y}'>${y}
                                    </option>
                                </c:forEach>
                            </select>
                        </p>
                    </div>
                </div>
            </div>
            <div class="subbar"></div>
            <div class="dk_detail" id="dtHoanTatDangKy">
                <input type="submit" name="capNhat" id="capNhat" value="Cập nhật" />
            </div>
        </div>
    </form>
</div>

